#include "composite.h"

int main(int argc, char** argv)
{
	Composite* root = new Composite();
	Composite* branch1 = new Composite();
	Leaf* leaf1 = new Leaf();
	Leaf* leaf2 = new Leaf();

	root->Add(branch1);
	root->Add(leaf1);
	branch1->Add(leaf2);

	root->Operation();

	delete root;
	delete branch1;
	delete leaf1;
	delete leaf2;
}